/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Parser;

import lowlevel.Function;

/**
 *
 * @author maxmuhlenkamp
 */
public class ExpressionStmt extends Statement{
    Expression expr;
    
    public ExpressionStmt(Expression expr){
        this.expr = expr;
    }

    @Override
    void print(String indent) {
        CMinusParser.oFile.println(indent + "ExpressionStmt:");
        expr.print(indent + "  ");
        CMinusParser.oFile.flush();
    }

    @Override
    void genLLCode(Function func) {
        expr.genLLCode(func);
    }
}
